package com.runshu.newsmartark.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.runshu.newsmartark.R;
import com.runshu.newsmartark.entity.SearchInfoEntity;

import java.util.List;

/**
 * Demo class
 *
 * @author yu
 * @date 2020/11/4
 * @decs：
 */

public class SearchDtaAdapter extends BaseQuickAdapter<SearchInfoEntity, BaseViewHolder> {
    public SearchDtaAdapter(@Nullable List<SearchInfoEntity> data) {
        super(R.layout.item_search_info, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SearchInfoEntity item) {

        helper.setText(R.id.item_tv_info, item.getField());
    }
}